package souralven.jcomicreader.controller.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

import souralven.jcomicreader.controller.ComicController;

public class GoBackListener implements ActionListener {
	private ComicController controller;

	public GoBackListener(final ComicController controller) {
		super();
		this.controller = controller;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		try {
			controller.goBack();
		} catch (IOException e1) {
			e1.printStackTrace();
		}
	}
}